package system

import "MoSkeleton/framework/core/dto/request"

type SysNoticePageReq struct {
	request.PageInfo
	request.BaseRequest
	NoticeTitle string `json:"noticeTitle" form:"noticeTitle"`
	NoticeType  string `json:"noticeType" form:"noticeType"`
	CreatedBy   string `json:"createdBy" form:"createdBy"`
}

type SysNoticeAddReq struct {
	NoticeTitle   string  `json:"noticeTitle"`
	NoticeType    string  `json:"noticeType"`
	NoticeContent *string `json:"noticeContent"`
	Status        string  `json:"status"`
	CreatedBy     string  `json:"createdBy"`
	UpdatedBy     string  `json:"updatedBy"`
	Remark        string  `json:"remark"`
}

type SysNoticeUpdateReq struct {
	request.IDRequest
	NoticeTitle   string  `gorm:"column:notice_title;type:VARCHAR(50);NOT NULL"`
	NoticeType    string  `gorm:"column:notice_type;type:CHAR(1);NOT NULL"`
	NoticeContent *string `gorm:"column:notice_content;type:LONGBLOB;"`
	Status        string  `gorm:"column:status;type:CHAR(1);"`
	UpdatedBy     string  `gorm:"column:updated_by;type:VARCHAR(32);"`
	Remark        string  `gorm:"column:remark;type:VARCHAR(255);"`
}
